#!/bin/bash

#安装postman
installPostman() {
    cd /home/${user}/dev/
    if  ! command -v git > /dev/null; then
        . ${currentDir}/dev/installAndConfigGit.sh
    fi

    if [ ! -d /home/${user}/dev/${postman_dir} ]; then
        git clone ${git_baseurl}${postman_dir}".git"
        cd /home/${user}/dev/${postman_dir}
        # Exec=
        sed -i "s#^Exec=.*#Exec=/home/${user}/dev/${postman_dir}/Postman#" /home/${user}/dev/${postman_dir}/Postman.desktop
        sed -i "s#^Icon=.*#Icon=/home/${user}/dev/${postman_dir}/icon.png#" /home/${user}/dev/${postman_dir}/Postman.desktop
        cp /home/${user}/dev/${postman_dir}/Postman.desktop /home/${user}/.local/share/applications/
    fi
    
    
}

installPostman